package com.liangtian.mdm.system.organization.dao;

import com.liangtian.mdm.base.BaseDao;
import com.liangtian.mdm.system.organization.model.SysOrganizationPermission;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * <p>Encoding    :  UTF-8</p>
 * <p>Package Name: com.liangtian.mdm.system.dictionary.dao </p>
 * <p>Project Name: dm </p>
 * <p>Copyright   :  Copyright(c) 2016 石化盈科信息技术有限责任公司 </p>
 * <p>Created Time: 2016-04-22 17:31</p>
 * <p>Description : 机构权限持久层</p>
 *
 * @author : wangyq
 * @version :  1.0
 */
@Repository
public interface SysOrganizationPermissionDao extends BaseDao<SysOrganizationPermission> {
    /**
     * @param params
     * @return 受影响的行数
     * @desc 插入组织机构权限关联数据
     */
    int insertOrganizationPermission(Map<String, Object> params);

    /**
     * @param params
     * @return
     * @desc 批量删除机构权限关联信息
     */
    int batchDeleteOrganizationPermission(Map<String, Object> params);

    /**
     * @param params
     * @return
     * @desc 通过机构ID批量删除机构权限关联数据
     */
    int deleteOrPerByOrganizationId(Map<String, Object> params);

    /**
     * @param params
     * @return 记录数
     * @desc 根据机构查询记录数
     */
    int queryOrganizationPermission(Map<String, Object> params);
}